import React ,{Component} from 'react';
import './Weekend.css';


export default class Weekend extends Component {

    render () {
        return (
            <div className="Weekend">
               <div className="title">周末去哪了</div>
               {
                   this.props.weekendData.map((item,i)=>{
                       return  <div className="weekList" key={item.id}>
                                <div className="weekbox">
                                    <img alt="f" src={item.imgUrl}/>
                                </div>
                                <h3 className="week_title">{item.title}</h3>
                                <p className="week_detail">{item.desc}</p>
                                </div>
                   })
               }
            </div>
        )
    }
}